add handleCommand to converter