@config can be undefined (e.g. in test)