zmqutils refact