two exceptions become errors
invent StateDir
some tests for WorkArea