unsecure script fix