added functions, disconnect feature