xml parser reworked and settings for persistent saving of variable values prepared - untested