implement writer
Merge branch 'master' into jupis