more redis code and fixed package.json