prep for doc generation