reconfigure to allow passing the configuration file
allow more elements to be optional