console input, commands dispatch