call update_all_fptrs earlier, to avoid some redundant compilation