allow dynamic arguments count in ClassProxy