prevent NPEs for non-existing paths