nearly completely automated, now I just need to automatically re-exec on the server side.