make 'this' point to the owner of midst.proto in middleware function.