modify auto-extend command: file