fixes for linux

fixes for linux