add bind and resolv bits
require tempfile