updated for the latest agents smaples