Use globals for api ver & ports