changed script to use root