modified BASH scripts for validation