fixed document loading to support the new docs structure