provide control into hook listener functions