check files exist