avoid to write to a temporary file for rendering