improved check of network