updated scripts according to new changes