add option to get list of connections from list of origins and destinations