add request inspector middleware