changed redis messages to sorted sets