use file, thanks @robhudson