initial commit of script and patches