handling asynchronism for loadAll