move execute_command to gate_lib_doc as it's the only place where it's used