made everything document based