changed exists to os.IsNotExists to check error