working implementation of combined results, but needs some major cleanup