first attempt at exposing an api for http