add function to lookup ip