[scripting] converted to Xbase 2.4