WIP: first draft to adding build hooks