explain this forest of scripts and copy/pasted files