distributed writing code for dynamograph