stuff in place for automatic document generation