moved refs to refs.ts