add build hook