remove old logging
rebuild
refactor tests to use fs.close()