update rpc.php to use composer