added support for multiple paths