should be using id, not grains[localhost]
add further debugging output