adding config and refactoring multi...