added logging for commands