bug fix, require('fs')