Add ip check, fix problems fix concurrency.