more flexible data dumping
get writes working!