redis support and minor changes