improved smf handling for osx