improved start.sh