added check for active API version