changed to current wok hook signature