handle file not existing, and lint