changed path set to use int (with precision)
added a backup path extractor when we use the gradient - so that we dont return failure