add a hook to build configs