implement writeSingleNode
improve error handling on server