rework getdata  - still WIP