loads whole data, checking for memory leak