for testing, output to redis