improved the output of named nodes and fixed join representations