refactored unlocked foreign document structure classes