changed cxt to not use reftype anymore