fixed deduplication in JSON export
created single imessage module