R: better loading + function moved to utility file