compatibility changes for os x