added flags to bash script
merge fix