add reusme function, update PHP server script.