adding more logging to send_command