write config to main class, this is a temp BC fix