properly use AMD module for crecords models inheritance