bash script modifications