added scripts and rewrote some code to fit cise linux boxes