bugfix: require('fs')
remove repeated config