main cleanup.