changed it so it actually works with linux