add convenient api to load data