change regsitry sync to koa