fix redirect bug, use ConfigurationManager
change config to test values

use prod config unless otherwise advised