fixed varargs handling