middleware module updated
jade err debug

;
extend_middleware branch merged