update libdg_loop