add option to disable automatic error rendering