Needed to pass along host and port correctly for api creation