fixed ep availability check