changes in ip-address
refactoring, breaking out a method and putting it in its own class