added check for undef before creating $vpn0_block and $eth0_block