added possibility to control an stm from another stm