add options to make P+NAME output in flattish structure