adds redis and fixes json syntax