fix history logging
add example ip lookup