use file timestamp correctly