added more exception checks to compiler