moved handleCommand to OrderHandler