init add writer