moving scripts into seperate files