portal pass detection improved