extracted the util/nat package