changes after code review on cmd_handler and txt_handler also litle changes on Norig and bakctraking