added support for arrays in paths