changed initial query for file input mode