Improve logging. Support for commands not just results. parsing of ids