use a simpiler mechanism for now to encode/decode worker messages