inline and rename runNext() in core