add mode to config