move subjecttypes and subjectsources json output to enums