first naive implementation of licenses schema