refactor like a normal nodejs project