read functions not yet tested/working