added multi-purpose resolver.