expanded get_shares to include parents