added helper function to find out to what extend the data has already been parsed