how to use a PAT file