adding mode to config file