Tore out all the nonsense, added refs to bootstrap