change license, add purge method