handle dwarf and archs