added path (gate) task depth check
merged new path task with hack