now using the file API to send messages