shared mem works