fix - works on linux and os x