[minor] automatically set returned values from before hooks