added config, redis support