simplified load() function