refactored import statements + fix chat websocket parameter error