put registry in request to prevent shell middleware error