split patha removet, finate state machine and fleeing added