tweaked output writer