errors not automatically caught