add prepare_command