switched to using rest api for messages