fixed/changed getinterface methods to getclass, should work for any class/interface