extracted http into adapter library, fixes #6