add partial class and metatype