improve writer and fix bug
add a multi_writer