separate loop_exec and nb_max_blocks