new code was under the wrong impression that options.params was an object, when it was a string

here's an implementation that supports both - i.e. object notation is now supported in additional to the original string