add config to load data via xhr or synchronously;
create models