added chunking. made server param mandatory. added named param method for values