added slam stm functionality