added more handling, added realization count to results