partial implementation for loading data