scripts moved up to d2-common