add agent loading