Remove unused tasks and add init check for osx task