added NewRef scripts