write job config file in various states. use config dict