s.prepare_command, not s.prepare_cmd.  What was I thinking?!