rewrite

rewrite z_main,z_control,z_global
some resource change