made it possible to pass in http config