refactor partner module