start of shared mem