update subprocess run method.