add reload_doc in a few patches