use single class for http