first shot at working chat
without the cruft