add platform script.