handles ip address here