middleware hooks added for more send stuff.