handle license earlier