export TextLoader for internal use