add deconnection behaviour