update version
better WriteAction code (thanks Nik!)
version