application_agent.c