adding CC info
adding doc
proper use of middleware