Notes on endomorphisms, local cohomology and completion