made the redis and ajax better