changed token char limit to 1024