add command to log