simplify rest transport using cookies