main bash script