modified data_handling to directly take function classes as well as their string aliases