add the ip check including shell and python