zlist_remove allows for iterative removal of items