move module conf code to Office lib