added some cleanup scripts within the functions that probably will be used for giving to user a better experience.