changed from exit code 3 to 2 on error