adapted to new request interface