removed old scripts, and added more functions