partly make getting and saving messages