minor fixes to accomendate mac os