fixed indentation
added option to force overwrite in non-interactive mode