removed old code from main bash script