allow type override in clean_types