modified wscript