moved http method out of cctray into mixin