refactor(console) main -> require