changed to lookup the most recent api version if not specified