added user configurable api key and host