fixed path regex for paths object