initial work for issue 399: add --force flag

See #399.