[P3]Registration and remove unneeded ZP_ globals