fixed timing problems on mac