added IP logging. perhaps other small things too