~# updated state and scripting