modified Cakeconfig with PersistentStateComponent