compiler now returns if an error ocured