use file for stat