ws: should be "if (req) {"