improve debug output
use single_value to avoid reading duplicate entries (what does _value do anyway?)
add more debug output