fixes for osx start and stop services