simplified loadoutput function