fixed incompatibility with version 2 of ZRE
This will probably obsolete version 1