fixes for mac os