clean up and license