modifying the secure script for casper root