added new index
finally added redis support and a createMessage function