added ping to redis to keep connection alive