initial commit for middleware
Merge https://github.com/mrdirtbag/adopt-a-block