fix for #16 - catch all errors

tabs to spaces again :(