add logging, listening not working yet