added changes to network check