avoid using Tempfile since it will automatically be deleted