add function to read rxp