added option to load data asynchronously.