add fieldname argument to websocket arguments and add necessaray handlers