generate methods after loading the IDL