add init and set userinfo shared memory