critical update to make paths fit directories names