resolv - code moved to its place