fix missing 'fs' require