modify: divide LDA interface into this and common modules