set BASE_DOCUMENT