simplify writer interface a little