some shared mem changes and work on snapshot logic
adding module shared mem with locking support