handled "no path exists" scenario

Signed-off-by: omar salem <omargamil@live.com>