added server debugging support