binding: add preinit function to load the config