exit(1) on errors