add license and fix premium chat check