proper shm discretized with fd methods

Change-Id: Ib59394c2e0877c15fb4e68fd91ec078917bb1ed9
fix tuple bug

Change-Id: I64e1272b46ab018e8f52a0d2cf14340dd4effa60