overriding default configuration with options
extracted method