handle agencies on PIL import better