added check for prod and check wtr