fixing if check for missing "path" if not given