do you need to write asynchronously or synchronously?