refactoring console