disable register_agent