cleanup and centralize license plugin