cleaned up HTTP, tweaked RPC. Seems to work!