moved more things into app.config and into static constructor