switch to service for agent