little refactoring
fix cascade for path relations