local2global added,check read me for bugs