added phase0 stuff