provide downwards compatibility (inline api key) by making the second argument optional