trying the protocol detection at different way. using req.protocol to determin if using http or https in req'