added messaging functionality. Currently not working