added simple before/after to handle array_shift/pop(explode