changes to program structure; still resolving icmp response issues