removed writeConfig. config happens as and when required.