Update loader.cpp