fine tuning

- some template changes
- transitionscripts.py => some sharing triggered by state changes