no not mutate the options object

The code currently modifies the original 'options' object, which might be used for multiple tasks by the user. This PR fixes this.