cleaning code + begin to work on getIp