fixes to generate user friendly message when file is not found