throw exception when file not found