adding agencies and subagencies