adding the code for loading from source when it is executng in the CPU