improved config api