return hashes with names instead of ids