[mod] handle empty paths
[mod] add helper functions to Position