stm spawner working
improved stmspawner