now message box is shown when file cannot be loaded