only set default when missing and use debug for cache