make error function simpler now that errors pass through