added ability to get and read data