FIX: proper output file name for node merge