factored out configuration settings code