changes for messages
fixes for https