**** TRAPS ***
step1: add shm stuff