modified scripts file  according to Dipsy