added ability to define FORMAT_TYPES functions as string in settings