did some work for testing purposes and also added listeners. they're NOT
yet on the server side