implemented get set shared message

need to be tested