refactoring node bin and config file