moved the 'fs' require to utils after refactoring