error catching enabled; not tested