Updated script

updated script, added some dependencies