use temporary file for outing.