fix models file split issue + inherit collection from class