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