adding mode to config