added mode enum
ignore .xcuserstate file