improving stream logic
fixing syntax error
fixing syntax error
prevent error that monitor is destroyed before it is installed.