add check for non-existing path