copy script from github