setting up configuration for different run modes