added basic message functionality