renamed __mappings to set_mappings