use Callback to cache parsed lines