extend the ixp.read() function