load data partially, fix bugs