check for reference classes if were gonna use a hack specifically for reference classes