io.js refactoring