move zapi class to zerogw class