replace params with kwargs in server