arbitrary edit field length
move some common code to maryclient.py, use compress_ws from gutils