network handling stuff added