changes to file present detection in sense.shtml