added command logging