added ip logging