changes for flat pathes