add targetPartitionSize to template and write a fallback