some more fixes for new hook path format