check for licences