working on console handling