deleted unused stuff and added displaying IP properly