put logic for getting mappings in one spot