turning on bash debugging for error checks