update automatic to listen and ignore anchors properly