added check for licenses