implement config api