implement hook for (TM,SPACE) and (TM,SCOE)