locateClass now works for models too