added writes, and lots of other goodies