using "send" as a method name is bad: def send => def send_command
more style changes