some fixes, add chat version with PM (still alpha)