handling more than one argument as options object or as native arguments