split main.sh