use isSubclassOf to check for interface usage