update to handle empty paths