added flags to bash script