fixed ip check

yota ip range also includes 178.177
misc code fixes