update loadSrcFiles logic