final changes to loading

code done for loading in examples