extended mapping_class for config to function & context