read in modes from config