fix isSupported function