fixed portalscript and dos
used enums