new script version for changed spacegate