added remote script cache invalidation