update properties on state change
bugfixes
wip