minor changes to run on linux