implemented interface and refined chat system