add switcher for shared memory output