refactoring on algorithms loader from config