added option for using a custom LM and different symmetrization heuristics