updated container api for agent