various websockets and sharedarea optimizations