finally fixes #142 Yeah baby!. Also fixes #144 and fixes #153 (implicit by defnining state-properties on a lower (non appstate level).. fixes #154 (resets that should work under #142)