added a cache for times when the response is lost, needs to be cleand up as it contains a major memmory leak