adding max time for path script