temp data and basic doc cleanup