allow specifying api base from cmd line