add 'parent' to CustomType