store messages in seperate json