fixed simple bash script stuff