implemented handling for br0ken internet and stuff.