-moved 'fs' module to more global scope