copy getRPCMethod, build only one library