survival misc stuff
Merge pull request #17 from lbraglia/master

survival misc stuff for writeData