added number of copies as a config option