joins creates correctly named results. closes #855