use fileinfo struct to query name of visited file