agent initialization modified