fixed the bash scripts