add debugging and several ResponseWriter wrappers