Add refs to schemas