Accept message

review and merge this working code