make return values customizable by instantiating the original class when found.