adding additional_pjaxr_blocks, switching to switch/case