more flexible config