added parameter to ReferenceMgr_GetSeq
imported remaining changes