added file inference