encapsulate functions from today in history script and rearrange the folder