adds third init argument to pass in a custom API address