correcting sub-generator hooks on route generator execution