made it more like a bash script