updated object loading to work based on location of clas