generate client code inside IDL directory
update patch for idl chagne (add clear method)