a few updates to the nanomsg example