update

some updates to the code
script update