optionally activate the license if provided
revert DTAPMode to D