back on using call - use tmpfile - prevent memory waste