check return - what happens if $path is not valid?