fixed a number of bugs, can delete memberships