added local command execution, added disconnect method