config with portrait and cache