wrap dynamic hook evaluation in a before block to get it run before deploy process