added document handling workflow