tweaks to work on linux