osx related stuff and mid