updates to router for better metrics, added socket options but turned 'em off, added notation for number of retries.