dynlink: fix do_step functions and add more logging