added critical error when file not found