initial add of read funciton for api
inial add of basic api