turn outputs into a dictionary