migrating code from the older Zenwarch