fixups for new hscript format