copyright and cleanup