added script and a bunch of stuff to it