added stm
finished up STM, I think