flat_file: load config in register() with callback