changed directory structure and added put/getdata routines