started adding a protected-doc feature
added doc recovery