fixed any broken compatibility from OSX support