set agent to start automatically