Client stat

this fixes a lot of the problems that we were having with read. Also starts the stat call from the client, there's still a bit wrong with that.