basic OSX support (may break other platforms)