fixs so it will run on mac os x