refactored specs to new attributes in Documents and Projects