handle network problem