improved hash and yaml output of a target definition