added methods to remove a connection