modelclass deprecated and moved to legacy