extracted load functions