only overwrite files if asked
minor fixes