moved command interpretation and result handling logic to runtime context