fix so it doesn't try to delete a nonexistant key
handle multiple sessions individually