fix backwards compatible script