API change for messages