added variadic functions should work with multi arity functions as well
fixed some bugs with multi arity functions