outline for protocol
send return value via keyedbits channel
back to using fd's
memd implemented; not tested