fixes for unixes