finished conversion to ratchet, added client action router, includes MAGIC.