add message put and get function