add `prefix` and `overwrite` options
bugfix