add nanomsg support

* need to add more tests