added max.sh