commented collectionapi from server/messages.js