modified mess.sh