detect license