fix api availability check if prefix defined