implemented chat and stuff