fixed some stuff for linux