code to load complete clusters into memory