some global phasing stuff