updated base.sh