updated load and quit functions