add hooks to choose assembler and aligner.