reading modes directly from config.txt