Sometimes roof leader pipes are directed into the foundation drain because we don't want water running across the patio. These can be safely redirected under the patio to the lawn, where the water will slowly seep away.