cleaning up main scripts
cleaning up main scripts