expose xhr