automatically set parent on new refobjects