finished v1 of messaging system