implement server/client; add support for parameters longer than 255 bytes