add back error processing