changed param passing to use the request
put all cms var into namedtuple