update sample agent and server config