cleaned up redis event handler