chained writing now works as well