load functions return values fix - working copy