updatemain.sh fixed