add resource and stm tracking