generalized configuration settings
refactored some code