updated ipv4-fetching and improved error-logging