add event hook for when compile completes