added server logging for diagnosing problems