bugfix:  save current method and command in login context