fixed the way we right the output to the cached string builder