improve loadlocalscript and .qrc