choose proper loader