added support for varargs.  only tested for one copy of the varargs