templated basic_loader