better code for path blocked