cleans up licence information