working for reading; needs writing functionality now