changes to make script work specifically with the new system