added logging for networkcheck.sh