fix console for refactoring