fixes stm and implement ldm