added errors subcommand and further checks to received messages