first version of a get_values function for distibuted values. tests are missing