zapi class to communicate with zerogw