refactoring LoadFunc..