get rid of fmt dependency in http