document update and pipe exception handling