missing file check added