added new phasing tool, compiles but not tested