add script and patches