working logic layer in messages.json