add 'setConfiguration' method for external configuration