moved refs to top level