split of packages between chat and login