https://medium.com/@drmcintyre1973/mac-ios-is-the-worst-system-i-ever-tried-to-write-code-for-f23ea31cfbad