added mode configuration