fixed not passing tests due to not requiring 'os' before use