improve code by adding a base trait for dealing with the configuration results