workaround by @Nelek applied to remaining scripts