changed main.sh permissions