cleaned up script files a bit