should fix the bash scripting errors