adding condition to import failed api notices