added parsing of results into ruby objects