update prepare_command