updated batch script