update middleware
Merge branch 'mikedev'