add file exist check into the moduleloader