rough sketch of nanocli.d, needs to link with -L-lnanomsg