enhance license detection