added more logging to endpoint listener