cleanup and license