some script cleanup stuff