fix resolveAll lazy behavior, add loaded line count