added some logging to debug server