finalized scripts and tested them