add --debug flag, print error even without debug