added errors on NULL path