config: use new HCL lib and structure