refactor consola